home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root._xmouse <= 420 && _root._ymouse < 270)
- {
- Mouse.hide();
- this._x = _root._xmouse;
- this._y = _root._ymouse;
- }
- else
- {
- Mouse.show();
- }
- dogX1 = dogX2;
- dogX2 = this._x;
- var dogX3;
- directionX = dogX2 - dogX1;
- if(directionX > 0)
- {
- this.gotoAndStop("right");
- }
- if(directionX < 0)
- {
- this.gotoAndStop("left");
- }
- if(directionX == 0)
- {
- if(dogX3 == "right")
- {
- this.gotoAndStop("right_stop");
- }
- if(dogX3 == "left")
- {
- this.gotoAndStop("left_stop");
- }
- }
- }
-